#include <stdio.h>  
#include <string.h>  
  
int main() {  
    char words[15][25], c;  
    int size = 0;  
    while (scanf("%s%c", words[size++], &c))  
        if (c == '\n')  
            break;  
    for (int i = 0; i < size; i++)  
        for (int j = i + 1; j < size; j++)  
            if (strcmp(words[i], words[j]) > 0) {  
                char temp[25];  
                strcpy(temp, words[i]);  
                strcpy(words[i], words[j]);  
                strcpy(words[j], temp);  
            }  
    for (int i = 0; i < size - 1; i++)  
        printf("%s ", words[i]);  
    printf("%s\n", words[size - 1]);  
    return 0;  
}  